package com.ultron.app.entity.test;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * 标题：财务通道(Excel业务对象)
 * 说明：财务通道(Excel业务对象)，作为基础新增、修改操作的入参
 * 时间：2024-4-24
 * 作者：admin
 */
@Data
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
@Accessors(chain = false)
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("财务Q&A(Excel业务对象)")
public class FinanceQAExcelBO2 implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序号")
    @ExcelProperty("序号")
    private Integer xh;

    @ExcelProperty("问题标题")
    private String wtbt;




    @ExcelProperty("问题大类")
    private String classification;




    @ExcelProperty("问题小类")
    private String wtxl;


    @ExcelProperty("小类细分")
    private String xlxf;


    @ExcelProperty("问题关键词")
    private String keyWord;

    @ExcelProperty("问题")
    private String q;

    @ExcelProperty("答案")
    private String a;


    @Override
    public String toString() {
        return "FinanceQAExcelBO2{" +
                "xh=" + xh +
                ", wtbt=" + wtbt +
                ", classification='" + classification + '\'' +
                ", wtxl=" + wtxl +
                ", xlxf=" + xlxf +
                ", keyWord='" + keyWord + '\'' +
                ", q='" + q + '\'' +
                ", a='" + a + '\'' +
                '}';
    }

    /**
     * 改造Excel模版
     * @return
     */
    public FinanceQAExcelBO2 buildExportModule(){
        this.xh = 1;
        this.wtbt = "挂账付款通道";
        this.classification = "问题分类";
        this.wtxl = "问题细类";
        this.xlxf = "细类细分";
        this.keyWord = "关键词";
        this.q = "问题";
        this.a = "答案";
        return this;
    }

}